package net.easyjava.third.rongcloud.rong.models;


import net.easyjava.third.rongcloud.rong.constants.RongCloudConstants;
import net.easyjava.third.rongcloud.rong.util.GsonUtil;

//文本消息
public class TxtMessage extends Message {

	private static final long serialVersionUID = -6425640332703316420L;
	private String content;
	private String extra;

	public TxtMessage() {
		this.type = RongCloudConstants.OBJECT_NAME_TXT;// "RC:TxtMsg";
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}
	
	public TxtMessage(String content) {
		this();
		this.content = content;
	}

	public TxtMessage(String content,String extra) {
		this(content);
		this.extra = extra;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return GsonUtil.toJson(this, TxtMessage.class);
	}
}
